# Contributor: Simon Zeni <simon@bl4ckb0ne.ca>
# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=waypipe
pkgver=0.7.0
pkgrel=2
pkgdesc="A proxy for Wayland clients"
url="https://gitlab.freedesktop.org/mstoeckl/waypipe"
arch="all"
license="MIT"
makedepends="meson wayland-protocols wayland-dev scdoc lz4-dev mesa-gbm libdrm-dev libva-dev"
source="https://gitlab.freedesktop.org/mstoeckl/waypipe/-/archive/v$pkgver/waypipe-v$pkgver.tar.gz"
options="!check" # not all tests pass
subpackages="$pkgname-doc"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	meson \
		--buildtype=plain \
		--prefix=/usr \
		--mandir=/usr/share/man \
		-Dwerror=false \
		-Db_ndebug=true \
		build
	ninja -C build
}

check() {
	ninja -C build test
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

sha512sums="d87f6da1aeabeec42be2d6a80c67eb8bd812cd6421493db492eae7fcd90004177000fd66b5c45c38bace2e98b0a1d4e648f2b12998a8f3f8089d0028a067226d  waypipe-v0.7.0.tar.gz"
